package VO;

import PO.State;
import PO.StatePO;

public class StateVO {
private State state;
private int startDay;
private int endDay;
private int year;

public StateVO(StatePO po)
{
	this(po.getState(),po.getStart(),po.getEnd(),po.getYear());
}
public StateVO()
{
	
	this(State.makeFrame,201301,20130101,20130601);
}
public StateVO(State s,int st,int e,int y)
{
	state = s;
	startDay = st;
	endDay = e;
	year = y;	
}

public State  getState()
{
	return state;
	
}
public void setState(State s)
{
	this.state = s;
	
}
public void setStart(int s)
{
	if (s>10000000&&s<90000000)
		this.startDay = s;
	
}
public void setEnd(int s)
{
	if (s>10000000&&s<90000000)
		this.endDay = s;
	
}
public int getStart()
{
		return this.startDay ;
	
}
public int getEnd()
{

		return 	this.endDay ;
	
}
public int getYear()
{
	
	return year;
}
public StatePO getPO() {
	// TODO Auto-generated method stub
	return new StatePO(getState(),getStart(),getEnd(),getYear());
}

}